package com.lx.demo.b.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created by lanyxp on 2021/3/11 17:19
 */
@Slf4j
@Component
public class DemoXXlJobHandler {
    @XxlJob("demoXXlJobHandler")
    public ReturnT<String> DemoXXlJonTest(String prma) {
        XxlJobLogger.log("XXL-JOB, Hello World.");
        return ReturnT.SUCCESS;
    }
}
